package com.zhiche.lisa.bms.dao.model.psup;

import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import com.baomidou.mybatisplus.enums.IdType;
import lombok.Data;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

/**
 * <p>
 * 人送供方基础信息维护
 * </p>
 *
 * @author linbao
 * @since 2019-06-18
 */
@Data
@TableName("lisa_psup_base_data")
public class PsupBaseData extends Model<PsupBaseData> {

    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;
    /**
     * 车队id
     */
    @TableField("fleet_id")
    private Long fleetId;
    /**
     * 车队名称
     */
    @TableField("fleet_name")
    private String fleetName;
    /**
     * 是否油价联动; 0-否, 1-是
     */
    @TableField("link_flag")
    private Integer linkFlag;
    /**
     * 优先级; 0-低, 1-中, 2高;
     */
    private Integer priority;
    /**
     * 价格模式; 0-传统价格模式, 1-人送价格模式, 2-一口价模式
     */
    @TableField("price_model")
    private Integer priceModel;
    /**
     * 现金预付比例
     */
    @TableField("cash_prepay_rate")
    private BigDecimal cashPrepayRate;
    /**
     * 现金尾款比例
     */
    @TableField("cash_final_rate")
    private BigDecimal cashFinalRate;
    /**
     * 油卡预付比例
     */
    @TableField("oil_prepay_rate")
    private BigDecimal oilPrepayRate;
    /**
     * 油卡尾款比例
     */
    @TableField("oil_final_rate")
    private BigDecimal oilFinalRate;
    /**
     * 92#汽油价格
     */
    @TableField("gasoline_price")
    private BigDecimal gasolinePrice;
    /**
     * 0#柴油价格
     */
    @TableField("diesel_price")
    private BigDecimal dieselPrice;
    /**
     * 生效日期
     */
    @TableField("effective_date")
    private Date effectiveDate;
    /**
     * 失效日期
     */
    @TableField("invalid_date")
    private Date invalidDate;
    /**
     * 状态; 0-新增, 1-已审核
     */
    private Integer status;
    /**
     * 创建时间
     */
    @TableField("gmt_create")
    private Date gmtCreate;
    /**
     * 创建人
     */
    @TableField("creator_name")
    private String creatorName;
    /**
     * 审核人
     */
    @TableField("activiti_name")
    private String activitiName;

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

    @Override
    public String toString() {
        return "PsupBaseData{" +
                ", id=" + id +
                ", fleetId=" + fleetId +
                ", fleetName=" + fleetName +
                ", linkFlag=" + linkFlag +
                ", priority=" + priority +
                ", priceModel=" + priceModel +
                ", cashPrepayRate=" + cashPrepayRate +
                ", cashFinalRate=" + cashFinalRate +
                ", oilPrepayRate=" + oilPrepayRate +
                ", oilFinalRate=" + oilFinalRate +
                ", effectiveDate=" + effectiveDate +
                ", invalidDate=" + invalidDate +
                ", status=" + status +
                ", gmtCreate=" + gmtCreate +
                ", creatorName=" + creatorName +
                ", activitiName=" + activitiName +
                "}";
    }
}
